<!DOCTYPE html>
<%@ page language="java" import="com.compuvest.web.*" pageEncoding="UTF-8" %>

<%@ taglib uri="/WEB-INF/tld/head.tld" prefix="head" %>

<jsp:useBean id="sb" class="SQLBean" scope="application"/>
<jsp:useBean id="advertShow" class="AdvertShow" scope="application"/>
<jsp:useBean id="basket" class="Basket" scope="session"/>
<%
    String thisURL = application.getInitParameter("http");

    int categoryID = advertShow.getInt(request.getParameter("fcid"), advertShow.getAdvertRandomCategory());
 
    session.setAttribute("session.categoryID", "0");
    session.setAttribute("session.subcatID", "0");
%>
<html>
<head>
<title><%= application.getInitParameter("CompanyName") %></title>
<%@include file="./incl/scripts.txt" %>
</head>
<body>

<div id='cvbody'>

 <head:show />

 <div id='cvcont'>
  <table id='cvmain'>
  <colgroup><col width='200px'/><col width='*'/><col width='160px'/></colgroup>
  <tbody>
   <tr>
    <td id='cvleft' valign="top">

     <div id='leftmenu'></div>

    </td>

    <td id='cvcenter' align="center" valign="top">

<img src="../img/fp/ddls.jpg" alt=""/>
<table id='frshow'>
<tr align='center'>
 <td><a href="<%= thisURL %>?fcid=573"><img src="../img/fp/notebook.png" alt=""/><br/>Notebook,<br/>PDA</a></td>
 <td><a href="<%= thisURL %>?fcid=446"><img src="../img/fp/system.png" alt=""/><br/>Systems,<br/>Barebones</a></td>
 <td><a href="<%= thisURL %>?fcid=9"><img src="../img/fp/hardd.png" alt=""/><br/>Storage<br/>Devices, HDD</a></td>
 <td><a href="<%= thisURL %>?fcid=30"><img src="../img/fp/monitor.png" alt=""/><br/>Monitors,<br/>TVs</a></td>
 <td><a href="<%= thisURL %>?fcid=304"><img src="../img/fp/vicard.png" alt=""/><br/>Video Cards</a></td>
 <td><a href='<%= thisURL %>?fcid=13'><img src="../img/fp/printer.png" alt=""/><br/>Printers</a></td>
 <td><a href="<%= thisURL %>?fcid=397"><img src="../img/fp/keyboard.png" alt=""/><br/>Input<br/>Devices</a></td>
 <td><a href="<%= thisURL %>?fcid=625"><img src="../img/fp/ipod.png" alt=""/><br/>Consumer<br/>Electronics</a></td>
</tr>
</table>
<br/>

      <div id='advshow'></div>

    </td>
    <td id='cvright' valign="top">

     <div id='advright'></div>

    </td>
   </tr>
  </tbody>
  </table>
 </div>

 <div id='cvfoot'></div>
</div>

</body>
<script type="text/javascript">
  window.addEvent('domready', function() {
    new LeftMenu({data:<%= advertShow.getLeftMenu() %>});
    new AdvertShow({data:<%= advertShow.getItemsFirstPage("" + categoryID) %>,cols:5,count:25});
  });
</script>

</html>
